<?php 
$lang='zh';
if (isset($_GET['l'])){
    $lang=$_GET['l'];
}
 
if ('winstongardencn.harrywinston-digital.com' == $_SERVER['HTTP_HOST']){
    $goUrl=[
        'zh'=>'https://www.harrywinston.cn/zh-hans?utm_source=h5&utm_medium=display&utm_term=cn&utm_content=story&utm_campaign=2019_winstongarden',
        'en'=>'https://www.harrywinston.cn/en?utm_source=h5&utm_medium=display&utm_term=cn&utm_content=story&utm_campaign=2019_winstongarden',
        'xg'=>'https://www.harrywinston.cn/zh-hans?utm_source=h5&utm_medium=display&utm_term=cn&utm_content=story&utm_campaign=2019_winstongarden'
    ];   
}else{
    if(strpos($_SERVER['REQUEST_URI'],"2019mo/go.php")){
        $goUrl=[
            'zh'=>'https://www.harrywinston.cn/zh-hans?utm_source=h5&utm_medium=display&utm_term=mo&utm_content=story&utm_campaign=2019_winstongarden',
            'en'=>'https://www.harrywinston.cn/en?utm_source=h5&utm_medium=display&utm_term=mo&utm_content=story&utm_campaign=2019_winstongarden',
            'xg'=>'https://www.harrywinston.cn/zh-hans?utm_source=h5&utm_medium=display&utm_term=mo&utm_content=story&utm_campaign=2019_winstongarden'
        ];
    }else{
        $goUrl=[
            'zh'=>'https://www.harrywinston.cn/zh-hans?utm_source=h5&utm_medium=display&utm_term=hk&utm_content=story&utm_campaign=2019_winstongarden',
            'en'=>'https://www.harrywinston.cn/en?utm_source=h5&utm_medium=display&utm_term=hk&utm_content=story&utm_campaign=2019_winstongarden',
            'xg'=>'https://www.harrywinston.cn/zh-hans?utm_source=h5&utm_medium=display&utm_term=hk&utm_content=story&utm_campaign=2019_winstongarden'
        ]; 
    }
    
    
    
}
header('Location: '.$goUrl[$lang]);
 